package cc

import scala.beans.BeanProperty
import scala.io.{Source, StdIn}


 class Student private(var name: String, var age: Int) {
    def p(): Unit = {
        print(Student.school)
    }


}

object Student {
    val school: String = "a";
    def newStudent() = new Student("", 12);

    def apply(name: String, age: Int): Student = new Student(name, age)
}



object HelloWorld {


    def main(args: Array[String]): Unit = {
        implicit val str: String = "df";

        def sayHello()(implicit name: String ) = {
            print(name)
        }

        sayHello


    }
}
